import { request } from "@/utils/service"
// import { getToken } from "@/utils/cache/cookies"
/** 增 */
export function createWebSteDataApi(data: any) {
  return request({
    url: "webSet/add",
    method: "post",
    data
  })
}

/** 删 */
export function deleteWebSteDataApi(id: string) {
  return request({
    url: "webSet/del",
    method: "delete",
    params: {
      id
    }
  })
}

/** 改 */
export function updateWebSteDataApi(data: any) {
  return request({
    url: "webSet/update",
    method: "put",
    data
  })
}

/** 查 */
export function getWebSteDataApi(params: any) {
  return request({
    url: "webSet/query",
    method: "get",
    params
  })
}

/**宽带上级 */
/** 增 */
export function createWebSteSuperDataApi(data: any) {
  return request({
    url: "webSource/add",
    method: "post",
    data
  })
}

/** 删 */
export function deleteWebSteSuperDataApi(id: string) {
  return request({
    url: "webSource/del",
    method: "delete",
    params: {
      id
    }
  })
}

/** 改 */
export function updateWebSteSuperDataApi(data: any) {
  return request({
    url: "webSource/update",
    method: "put",
    data
  })
}

/** 查 */
export function getWebSteSuperDataApi(params: any) {
  return request({
    url: "webSource/query",
    method: "get",
    params
  })
}
